﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace GUI.UserInterfaces
{
    public partial class GUIAbout : Form
    {
        private static GUIAbout form = null;

        public GUIAbout()
        {
            InitializeComponent();
        }

        private void btnClose_Click(object sender, EventArgs e)
        {
            Close();
            form = null;
        }

        public static void ShowForm()
        {
            if (form != null)
            {
                form.BringToFront();
            }
            else
            {
                form = new GUIAbout();
                form.Show();
            }
        }

        private void GUIAbout_FormClosed(object sender, FormClosedEventArgs e)
        {
            form = null;
        }
    }
}